home *** CD-ROM | disk | FTP | other *** search
- name APTCL3 Non-Multax Generator
-
- c 00
- G 2
- p >8
- X ->3.>4 ""
- Y ->3.>4 ,
- Z ->3.>4 ,
- z >3.>4 IncFrom Z
- I ->3.>4 ,
- J ->3.>4 ,
- K ->3.>4 ,
- R ->3.>4 ,
- F >3.>3
- r >3.>4 IncFrom Z
- f >3.>3
- t >2
- l >2
- s >4
- M 2
- a >3.>4
- b >3.>4 ,
- d >2
- n >3.>4
- ) 00
-
- ModalLetters f # List of letters that are modal
- ModalGs # List of g codes that are modal
-
- HCode X # X or X U 'Horizontal char.
- VCode Y # Y or Y V 'Vertical char.
- Dcode Z # Depth char.
- FeedCode f # Feed rate char.
-
- Comment PPRINT/ # Begin End comment char.
-
- Spindle 3 4 5 # Cw, ccw & stop m codes
- Coolant 8 9 7 # On, Off & Mist m codes
- DComp 41 42 40 # Left, Right & Cancel m codes
- LComp 43 49 # On & Off codes
-
- Feed G01 # Linear move
- Inc/Abs G 91 90 # Inc & Abs char. & values
- Work G # Work offset register
- CtrCode I J # I J or R or I J K L
- Helical? N
-
- Spaces? Y # Y or N 'Spaces between words
- Incremental? N # Y or N 'Inc or abs output
- CtrIncremental? N # Y or N 'Inc or abs I & J
- ByQuadrants? N # Y or N 'Break arcs at quadrants
-
- UppercaseComments? Y # Y or N 'Require uppercase comments
-
- Drill 1 # Drilling canned/manual cycle
- G81 z[Depth] F[FRate] r[PointD]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Peck 1 # Pecking canned/manual cycle
- G83 z[Depth] F[Frate] r[PointD] n[VBite]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Tap 1 # Tapping canned/manual cycle
- G84 z[Depth] F[Frate] r[PointD]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Ream 1 # Reaming canned/manual cycle
- G85 z[Depth] F[FRate] r[PointD]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Bore 1 # Boring canned/manual cycle
- G86 z[Depth] F[FRate] r[PointD]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Back 1 # Back boring canned/manual cycle
- G87 z[Depth] F[FRate] r[PointD]
- G01 X[H] Y[V] Z[D]
- end cancel
-
- Cancel # Cancel a canned/manual cycle
- G80
- end
-
- StartCode # Start of the program
- p[Val1]
- M98
- End
-
- 1stToolChange # First tool change
- G99 X[Val2] Y[Val3] Z[Val4]
- t[Tool] l[Lcomp]
- a[ToolDiam] b[ToolRad]
- s[Speed] M[Direct]
- M[Cool]
- End
-
- Infeed # Enable cutter comp
- G[Side] d[DComp]
- G01 X[H] Y[V] Z[D]
- end
-
- Outfeed # Disable cutter comp
- G40
- G01 X[H] Y[V] Z[D]
- end
-
- ToolChange # Secondary tool changes
- M09
- G00 G01 X[H] Y[V] Z[Val4]
- t[Tool] l[Lcomp]
- a[ToolDiam] b[ToolRad]
- s[Speed] M[Direct]
- M[Cool]
- End
-
- EndCode # End of the program
- G00 G01 X[Val2] Y[Val3] Z[Val4]
- M09
- M02
- M99
- End
-
- LineCode # Linear move
- f[FRate]
- G01 X[H] Y[V] Z[D]
- end
-
- RapidCode # Rapid move
- G00 G01 X[H] Y[V] Z[D]
- end
-
- CwCode # CW circular move
- c0 X[Hctr] Y[Vctr] Z[D] I0.0 J0.0 K-1.0 R[ArcRad]
- G01 X[H] Y[V] Z[D]
- end
-
- CcwCode # CCW circular move
- c0 X[Hctr] Y[Vctr] Z[D] I0.0 J0.0 K1.0 R[ArcRad]
- G01 X[H] Y[V] Z[D]
- end
-
- Ask [Val1] " Program# : " "0000"
- Ask [Val2] " X-Axis home: " " 0.0"
- Ask [Val3] " Y-Axis home: " " 0.0"
- Ask [Val4] " Z-Axis home: " "10.0"
-
- Replace "c" with "CIRCLE/"
- Replace "G00" with "RAPID, "
- Replace "G01" with "GOTO/"
- Replace "G99" with "FROM/"
- Replace "p" with "PARTNO/ "
- Replace "(" with "PPRINT/ "
- Replace "G41" with "CUTCOM/LEFT"
- Replace "G42" with "CUTCOM/RIGHT"
- Replace "G40" with "CUTCOM/OFF"
- Replace "d" with ", "
- Replace "t" with "LOADTL/"
- Replace "f" with "FEDRAT/IPM,"
- Replace "l" with ", OSETNO,"
- Replace "s" with "SPINDL/RPM,"
- Replace "M01" with "OPSTOP"
- Replace "M02" with "END"
- Replace "M03" with ", CLW"
- Replace "M04" with ", CCLW"
- Replace "M07" with "COOLNT/MIST"
- Replace "M08" with "COOLNT/ON"
- Replace "M09" with "COOLNT/OFF"
- Replace "M98" with "MULTAX/OFF"
- Replace "M99" with "FINI"
- Replace "G80" with "CYCLE /OFF"
- Replace "G81" with "CYCLE /DRILL"
- Replace "G83" with "CYCLE /DEEP"
- Replace "G84" with "CYCLE /TAP"
- Replace "G85" with "CYCLE /REAM"
- Replace "G86" with "CYCLE /BORE"
- Replace "n" with ", INCR, "
- Replace "a" with "CUTTER/"
- Replace " F" with ", IPM,"
- Replace "z" with ", FEDTO,"
-